home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 49 / PCPP49a.iso / editors / sofsdk / SoF SDK.msi / _A46F06312D964A6EAD757AAB3988D83A < prev    next >
Encoding:
Text File  |  2000-03-27  |  1.2 KB  |  42 lines

  1. #include "../common/header.ds"
  2. output "p:/base/ds/tsr1"
  3.  
  4.  
  5.  
  6.  
  7.  
  8. local entity stairguy1 // the guy kicking the soda machine
  9. local entity stepsrunguy // the guy running up the lower set of steps
  10.  
  11. local int sig1
  12.  
  13. stairguy1 = find entity with targetname "stairguy1"
  14. stepsrunguy = find entity with targetname "stepsrunguy"
  15.  
  16.  
  17. use entity stepsrunguy // spawns him in the world
  18.  
  19.  
  20.  
  21. on stairguy1.health < 100 goto sodalet_go
  22.  
  23.    play sound "impact/vending/kick.wav" for entity stairguy1 at volume 0.9
  24.    animate entity stairguy1 performing action STD_XKICKDOOR_N_A_A // the first guy kicks the sodamachine
  25.    wait .1 seconds
  26.    play sound "impact/vending/kick.wav" for entity stairguy1 at volume 0.9
  27.    animate entity stairguy1 performing action STD_XKICKDOOR_N_A_A // again
  28.  
  29.    play sound "impact/vending/sodadrop.wav" for entity stairguy1 at volume 0.9
  30.    wait 1.5 seconds 
  31.    play sound "speech/tsr1/skn/bt9-5.adp" for entity stairguy1 at volume 0.8
  32.    wait .5 seconds
  33.  
  34.  
  35. label sodalet_go
  36.  
  37.    reset ai for entity stairguy1
  38.    animate entity stairguy1 performing action SCRIPT_RELEASE
  39.    use entity stepsrunguy // starts him on his pointcombats
  40.  
  41.  
  42. exit